
#import <Foundation/Foundation.h>
#import <RTKOTASDK/RTKOTASDK.h>

@protocol BleToolDelegate
-(void)BleToolProgress:(NSString*)progress;
@end

@interface BleTool : NSObject<RTKLEProfileDelegate, RTKMultiDFUPeripheralDelegate>
@property (nonatomic,retain) id<BleToolDelegate>delegate;
@property RTKOTAProfile *OTAProfile;
@property RTKOTAPeripheral *OTAPeripheral;
@property (nonatomic) RTKMultiDFUPeripheral *DFUPeripheral;
@property (nonatomic) BOOL upgradeSilently;
@property (nonatomic, nullable, readonly) NSArray <RTKOTAUpgradeBin*> *imagesUserSelected;
@property (nonatomic, nullable, readonly) NSArray <RTKOTAUpgradeBin*> *toUpgradeImages;
@property (nonatomic,assign) NSInteger  upMis;//100 固件升级完升级UI
- (void)initData;
- (void)setDeviceName:(NSString *)name;
- (void)setFilePath:(NSString *)path;
- (void)searchDevice:(NSString *)name;
- (void)MYPeripheral:(CBPeripheral *)peripheral;
- (void)clickStart:(NSInteger )upMisVC;
-(void)onFileHasSelected:(NSString *)fileName;
+(BleTool *)sharedManager;
@end
